<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>css 继承</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    body {
      font: italic bold 12px/20px arial, sans-serif;
      height: 100vh;
      background-color: pink;
    }

    div {
      font-size: 18px;
      height: inherit;
      background-color: unset;
    }
  </style>
</head>

<body>
  <div>汉挺住在莲塘富人区</div>
</body>

</html>